package com.winshare.saleAssistant.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import com.winshare.saleAssistant.model.UserLoginLog;
import com.winshare.saleAssistant.modelVo.LoginCountVo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 登录日志 服务类
 * </p>
 *
 * @author stylefeng
 * @since 2020-11-16
 */
public interface IUserLoginLogService extends IService<UserLoginLog> {
    List<UserLoginLog> selectListByPCA(String province, String city, String areaName);

    int getTUserLogCount(Date starTime, Date endTime, String productName);

    int getLoginLogTotatol(String areaName, String productName, Date starTime, Date endTime);

    List<UserLoginLog> getHighTime(String areaName, String productName, Date starTime, Date endTime);

    Map<String, Object> getloginDiscount(String areaName, String productName, Date starTime, Date endTime);

    List<LoginCountVo> getMonthAccount(String provinceName, String cityName, String areaName, String productName, Date starTime, Date endTime);

    List<LoginCountVo> getAvgTime(String provinceName, String cityName, String areaName, String productName, Date starTime, Date endTime);

    List<Map<String, Object>> getPALogin(String productName, Date starTime, Date endTime, String orderBy);


    List<UserLoginLog> getSchoolCountTime(String provinceName, String cityName, String areaName, String productName, Date starTime, Date endTime, String dataType);

    String getSynchronousTime();
}
